namespace ConsoleApp3._0923;

public class Demo
{
    //作业1
    public void CheckYear()
    {
        int num = 2020;
        bool flag = ((num % 4 == 0 && num % 100 != 0) || (num % 400 == 0));
        if (flag)
        {
            Console.WriteLine($"{num}是闰年");
        }
        else
        {
            Console.WriteLine($"{num}是平年");
        }
    }
    //作业2
    public void test()
    {
        double planPrice;
        double emuPrice;
        String monthInput=Console.ReadLine();
        int month=int.Parse(monthInput);
        if (month >= 5 && month <= 10)
        {
            planPrice = 8000*0.9;
            emuPrice = 8000*0.75;
            Console.WriteLine("旺季航班出行为："+planPrice+"旺季动车出行："+emuPrice);
        }
        else
        {
            planPrice = 8000*0.6;
            emuPrice = 8000*0.3;
            Console.WriteLine("淡季航班出行为："+planPrice+"淡季动车出行："+emuPrice);
        }
        
    }
    
    
}